Skip to main content

How-To Guides

Initial set-up

First, check that we are not unintentionally in a virtualenv. Run poetry env info; under "Virtualenv", it should show Path: NA. If it displays the path to an existing virtualenv, deactivate it, for example by running deactivate or conda deactivate.

Then run the following to set up the package:

cd semantic_parsing_with_constrained_lm
poetry config virtualenvs.in-project true
poetry env use <path to python3.7>
poetry install
poetry shell

Before running any of the commands below, run poetry shell to activate the virtualenv where all packages have been installed. You can exit to deactivate the virtualenv.

Running a command

To run this script, you first need to source and load the virtual environment through poetry: source $HOME/.poetry/env poetry shell

Afterwards you can run the script as follows: bash runCompletePipeline.sh "Entery query here within quotations"

This will output a list of options which the user will have to select from. Currently output to output.json